package com.itheima.ai.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.itheima.ai.entity.po.SpringAiChatMemory;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author huge
 * @since 2025-05-22
 */
@Mapper
public interface SpringAiChatMemoryMapper extends BaseMapper<SpringAiChatMemory> {

    @Select("SELECT DISTINCT conversation_id FROM spring_ai_chat_memory")
    List<String> listConversationIds();
}